package com.zpark.cloud.alibaba.service.impl;

import com.zpark.cloud.alibaba.entity.Dept;
import com.zpark.cloud.alibaba.mapper.IDeptMapper;
import com.zpark.cloud.alibaba.service.IDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @PackageName: com.zpark.cloud.alibaba.service.impl
 * @ClassName: DeptServiceImpl
 * @Description:
 * @author: RZS
 * @date: 2023/6/21  15:10
 */
@Service
public class DeptServiceImpl implements IDeptService {

    @Autowired
    private IDeptMapper deptMapper;

    @Override
    public Dept findById(Integer id) {
        return deptMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Dept> findAll() {
        return deptMapper.selectAll();
    }
}
